package com.dc.dao.impl;

import com.dc.base.utils.BaseDao;
import com.dc.dao.NoticeDao;

import java.util.List;
import java.util.Map;

public class NoticeDaoImpl implements NoticeDao {
    BaseDao baseDao = new BaseDao();

    @Override
    public int addNotice(String sql, Object[] params) throws Exception {
        return baseDao.update(sql,params);
    }

    @Override
    public int updateNotice(String sql) throws Exception {
        return baseDao.update(sql);
    }

    @Override
    public int deleteNotice(String sql) throws Exception {
        return baseDao.update(sql);
    }

    @Override
    public List<Map<String, Object>> selectNotice(String sql, Object[] params) throws Exception {
        return baseDao.query(sql, params);
    }
}
